package expression;

import java.util.LinkedList;

public class FnBoolConstant extends Fn implements FnBool {

	private Boolean value;

	public FnBoolConstant(Boolean value) {
		this.value = value;
	}

	@Override
	protected boolean isAcceptableChild(Fn fn) {
		return false;
	}
	
	@Override
	protected boolean isAcceptableParam(Object o) {
		return false;
	}

	@Override
	public int getNParam() {
		return 0;
	}

	@Override
	protected int precedence() {
		return Integer.MAX_VALUE;
	}

	@Override
	protected Object value(LinkedList<Object> param) {
		return null;
	}

	public Boolean value() {
		return value;
	}

	@Override
	public String symbol() {
		return null;
	}

	@Override
	protected String[] notation() {
		return new String[]
		{ value + "", "", "" };
	}
}
